namespace BB.Apostas.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class v3 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Jornadas", "Descricao", c => c.String());
            AddColumn("dbo.Jornadas", "Realizada", c => c.Boolean(nullable: false));
            AddColumn("dbo.Jornadas", "competicao_Id", c => c.Int());
            AddForeignKey("dbo.Jornadas", "competicao_Id", "dbo.Competicaos", "Id");
            CreateIndex("dbo.Jornadas", "competicao_Id");
        }
        
        public override void Down()
        {
            DropIndex("dbo.Jornadas", new[] { "competicao_Id" });
            DropForeignKey("dbo.Jornadas", "competicao_Id", "dbo.Competicaos");
            DropColumn("dbo.Jornadas", "competicao_Id");
            DropColumn("dbo.Jornadas", "Realizada");
            DropColumn("dbo.Jornadas", "Descricao");
        }
    }
}
